package com.example.tutorialmongodb.jpa;

import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * @author: cph
 * @date: 2021/10/20 12:22
 */
public interface TutorialRepository extends MongoRepository<Tutorial, String> {

    List<Tutorial> findByTitleContaining(String title);

    List<Tutorial> findByPublished(boolean published);
}
